package com.hjt.common.constant;

/**
 * 仓储服务常量类
 * @author:97007
 * @date:2021/9/14 19:24
 */
public class WareConstant {

    // 采购单状态
    public enum PurchaseStatusEnum{
        NEW_STATUS(0, "新建"),ALLOCATED_STATUS(1, "已分配"),PURCHASING_STATUS(2,"已领取"),
        FINISHED_STATUS(3,"已完成"),FAILED_STATUS(4,"有异常");
        int code;
        String info;
        PurchaseStatusEnum(int code, String info) {
            this.code = code;
            this.info = info;
        }

        public int getCode() {
            return code;
        }

        public void setCode(int code) {
            this.code = code;
        }

        public String getInfo() {
            return info;
        }

        public void setInfo(String info) {
            this.info = info;
        }
    }

    // 采购需求状态
    public enum PurchaseDetailStatusEnum{
        NEW_STATUS(0, "新建"),ALLOCATED_STATUS(1, "已分配"),PURCHASING_STATUS(2,"正在采购"),
        FINISHED_STATUS(3,"已完成"),FAILED_STATUS(4,"采购失败");
        int code;
        String info;
        PurchaseDetailStatusEnum(int code, String info) {
            this.code = code;
            this.info = info;
        }

        public int getCode() {
            return code;
        }

        public void setCode(int code) {
            this.code = code;
        }

        public String getInfo() {
            return info;
        }

        public void setInfo(String info) {
            this.info = info;
        }
    }
}
